import 'package:flutter_demo/binding/login_binding.dart';
import 'package:flutter_demo/middlewares/login_middle_wares.dart';
import 'package:flutter_demo/pages/category/category_view.dart';
import 'package:flutter_demo/pages/goods_product_list/goods_product_list_view.dart';
import 'package:flutter_demo/pages/home/binding.dart';
import 'package:flutter_demo/pages/home/home_view.dart';
import 'package:flutter_demo/pages/home_cart/home_cart_view.dart';
import 'package:flutter_demo/pages/home_first/home_first_view.dart';
import 'package:flutter_demo/pages/home_message/home_message_view.dart';
import 'package:flutter_demo/pages/home_profile/home_profile_view.dart';
import 'package:flutter_demo/pages/product_details/product_details_view.dart';
import 'package:flutter_demo/pages/register/register_view.dart';
import 'package:flutter_demo/pages/register_pin/register_pin_view.dart';
import 'package:flutter_demo/pages/test/test_view.dart';
import 'package:flutter_demo/routers/names.dart';
import 'package:get/get.dart';

import '../pages/login/login_view.dart';
import '../pages/splash/splash_view.dart';

class AppPages{
  static List<GetPage> list = [
    GetPage(name: RouteNames.systemHome, page: ()=>HomePage(),middlewares:[LoginMiddleWares(priority: 1)]),
    GetPage(name: RouteNames.systemSplash, page: ()=> SplashPage()),
    GetPage(name: RouteNames.systemTest, page:()=>TestPage()),
    GetPage(name: RouteNames.systemRegister, page: ()=>RegisterPage()),
    GetPage(name: RouteNames.systemRegisterPin, page: ()=>Register_pinPage()),
    GetPage(name: RouteNames.systemLogin, page: ()=> const LoginPage(),binding: LoginBinding()),
    GetPage(name: RouteNames.homeFirst, page: ()=>Home_firstPage()),
    GetPage(name: RouteNames.homeCart, page: ()=>Home_cartPage()),
    GetPage(name: RouteNames.homeMessage, page: ()=>Home_messagePage()),
    GetPage(name: RouteNames.homeProfile, page: ()=>Home_profilePage()),
    GetPage(name: RouteNames.goodsProductList, page: ()=>Goods_product_listPage()),
    GetPage(name: RouteNames.categoryPage, page: ()=>CategoryPage()),
    GetPage(name: RouteNames.productDetails, page: ()=> const Product_detailsPage())
  ];

}